<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Customers extends Model
{
    protected $table='customers';
    public  $timestamps=false;
    protected $primarykey='id';
    public $incrementing=false;
    public function position(){
        /**
         * 获取关联的地址
         */
         return $this->hasOne('App\Models\Position','id','id');    
    }
}